package com.ss.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TSysuser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_sysuser", catalog = "sm")
public class TSysuser implements java.io.Serializable {

	// Fields

	private Integer usercode;
	private String userid;
	private String username;
	private String password;
	private String sex;
	private String phone;
	private String mailbox;
	private Timestamp birthday;
	private Integer status;
	private Timestamp lastlogintime;
	private String sortid;

	// Constructors

	/** default constructor */
	public TSysuser() {
	}

	/** minimal constructor */
	public TSysuser(String userid, String username, String password) {
		this.userid = userid;
		this.username = username;
		this.password = password;
	}

	/** full constructor */
	public TSysuser(String userid, String username, String password,
			String sex, String phone, String mailbox, Timestamp birthday,
			Integer status, Timestamp lastlogintime, String sortid) {
		this.userid = userid;
		this.username = username;
		this.password = password;
		this.sex = sex;
		this.phone = phone;
		this.mailbox = mailbox;
		this.birthday = birthday;
		this.status = status;
		this.lastlogintime = lastlogintime;
		this.sortid = sortid;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "usercode", unique = true, nullable = false)
	public Integer getUsercode() {
		return this.usercode;
	}

	public void setUsercode(Integer usercode) {
		this.usercode = usercode;
	}

	@Column(name = "userid", nullable = false, length = 50)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "username", nullable = false, length = 50)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "password", nullable = false, length = 50)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "sex", length = 50)
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "phone", length = 50)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "mailbox", length = 50)
	public String getMailbox() {
		return this.mailbox;
	}

	public void setMailbox(String mailbox) {
		this.mailbox = mailbox;
	}

	@Column(name = "birthday", length = 19)
	public Timestamp getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Timestamp birthday) {
		this.birthday = birthday;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "lastlogintime", length = 19)
	public Timestamp getLastlogintime() {
		return this.lastlogintime;
	}

	public void setLastlogintime(Timestamp lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	@Column(name = "sortid", length = 50)
	public String getSortid() {
		return this.sortid;
	}

	public void setSortid(String sortid) {
		this.sortid = sortid;
	}

}